#include<stdlib.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<unistd.h>
#include <fcntl.h>
#include<string.h>
#include<dirent.h>

int main(int argc,char **argv){

   char buf[11024];
   DIR *dirp;
   struct dirent *dt;
   dirp = opendir("/etc");
   while ((dt = readdir(dirp))!= NULL)
   {
     printf(" %s \n",dt->d_name);
     
   }
    



   return 0;
}